package routers

import (
	"XYZShell/daltool/controllers"

	"github.com/astaxie/beego"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/api/gettables", &controllers.MainController{}, "post:GetTables")
	beego.Router("/api/getcolumns", &controllers.MainController{}, "post:GetColumns")
	beego.Router("/api/codegen", &controllers.MainController{}, "post:GenCode")
	beego.SetStaticPath("/res", "static")

}
